<title> Location Discponible </title>

<section>
	
	<?php
		while ($recent = mysqli_fetch_array($resultat)) {
		
		$debut_baille = date("d-m-Y", strtotime($recent['debut_baille']));
		$fin_baille = date("d-m-Y", strtotime($recent['fin_baille']));
		
			
		echo"	<a href='detail_location.php?id=".$recent['id']."' title='Logement #'>
					<div class='recent'>".$recent['type']." - ".$recent['surface']." m² - ".$recent['piece']." pieces - ".$recent['ville']." - du ".$debut_baille." au ".$fin_baille." </div>
				</a>";
		
		


		
		}
	
	?>

</section>